#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  string ans;
  for (auto f : s) {
    if (f >= 'A' && f <= 'Z') 
      ans += f;
  }
  cout << ans;
  return 0;
}